
<%= form_with(model: [ @article, @article.comments.build ], local: true) do |form| %>
  <p>
    <%= form.text_area :body %>
  </p>
  <% if current_user %>
    <p>
      <%= form.submit %>
    </p>
  <% end %>
<% end %>